<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>颜色</title>
    <style>
        body {
            background-image: url(../格式化文本/img/beijing.jpg);
            background-size: cover;
            background-repeat: no-repeat;
        }

        .main {
            display: flex;
        }

        .main-1 {
            width: 300px;
            height: 300px;
            background-color: #8333e6;
            opacity: .5;
        }

        .main-2 {
            margin-left: 10px;
            width: 300px;
            height: 300px;
            background-color: rgba(255, 0, 0, 0.5);
        }

        .main-3 {
            margin-left: 10px;
            width: 300px;
            height: 300px;
            background-color: rgba(65, 164, 210, 0.5);
        }

        .main-4 {
            margin-left: 10px;
            width: 300px;
            height: 300px;
            background-color: #ddd;
        }

        .main-5 {
            margin-left: 10px;
            width: 300px;
            height: 300px;
            background-color: hsl(330, 70%, 90%);
        }

        .main-6 {
            margin-left: 10px;
            width: 300px;
            height: 300px;
            background-color: hsla(120, 100%, 50%, 0.5);
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="main-1"></div>
        <div class="main-2"></div>
        <div class="main-3"></div>
        <div class="main-4"></div>
        <div class="main-5"></div>
        <div class="main-6"></div>
    </div>
    <br>
    <img src="./img/1.png" width="500">
    <img src="./img/2.png" width="410">
</body>

</html>